import { _post, _get } from '@/utils/network.js';
// 获取用户信息
export function getProfile() {
  return _get('/app/user/getInfo')
}
export function getWalletInfo(){
  return _get('/app/user/wallet/getInfo')
}
export function getWalletDetailPage(param){
  return _get('/app/user/wallet/detail/page',param)
}
export function bindAddress(address){
  return _get('/app/user/bindAddress?address='+address)
}

export function getAddress(){
  return _get('/app/user/getAddress')
}

export function withdrawalAPI(integral,pwd){
  return _get('/app/user/withdrawal/apply?integral='+integral+'&pwd='+pwd)
}

export function getWithdrawalList(param){
  return _get('/app/user/withdrawal/page',param)
}

export function setLoginPwd(param){
  return _post('/app/user/edit/email/pwd',param)
}

export function setSecondPwd(param){
  return _post('/app/user/set/secondPwd',param)
}


export function getInvitation(){
  return _get('app/user/getInvitation')
}

export function getInvitationList(type){
  return _get('/app/user/getInvite?type='+type)
}